xl: allow def_getopt to handle long options
authorIan Campbell <ian.campbell@citrix.com>
Fri, 25 Jan 2013 08:54:19 +0000 (08:54 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 25 Jan 2013 08:54:19 +0000 (08:54 +0000)
commit6ec005f21846eb64867f6b371523f3dde7bc3d3c
tree240410a2526ad21add4699cd8419753ad489e233
parentd6541015645e806f78a48dd5fc628b15bc9ff0b8
xl: allow def_getopt to handle long options

Improves consistency of option parsing and error handling.

Consistently support --help for all options.

Many users of getopt_long were needlessly passing an option_index
pointer which was not used.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c